// Define a record named 'Person'
public record Person(String name, int age) {}

public class Main {
    public static void main(String[] args) {
        // Creating an instance of the Person record
        Person person = new Person("Alice", 30);

        // Using the toString method provided by the record
        System.out.println(person);
    }
}